package cn.coufran.springboot.starter.http.content;

/**
 * @author Coufran
 * @version 1.2.0
 * @since 1.2.0
 */
public abstract class HttpBodyContent<T> {
    private String name;

    public HttpBodyContent() {
    }

    public HttpBodyContent(String name) {
        this.name = name;
    }

    public String name() {
        return this.name;
    }

    public abstract T content();

    @Override
    public String toString() {
        return "HttpBodyContent{" +
                "name='" + name + '\'' +
                '}';
    }
}
